
all: openrv_min_sopc

openrv_min_sopc: openrv_min_sopc_tb.v ../rtl/defines.v ../rtl/pc_reg.v ../rtl/inst_rom.v ../rtl/data_ram.v ../rtl/ex_mem.v ../rtl/ex.v ../rtl/id_ex.v ../rtl/id.v ../rtl/if_id.v ../rtl/mem.v ../rtl/mem_wb.v ../rtl/div.v ../rtl/ctrl.v ../rtl/openrv.v ../rtl/openrv_min_sopc.v ../rtl/regfile.v
	iverilog -o $@ $^ -I../rtl/

openrv_min_sopc.vcd: openrv_min_sopc
	vvp -n $< -lxt2

wave: openrv_min_sopc.vcd
	cp $< openrv_min_sopc.lxt
	gtkwave openrv_min_sopc.lxt

clean:
	rm -rf *.vcd *.lxt2 *.lxt openrv_min_sopc
